package ru.spb.nicetu.altx.mnemo.palette.core;

public class FuncParamDescriptor extends ItemElementDescriptor{

  String id;
  String type;
  String valueClassName;
  
  public FuncParamDescriptor(String id, String name, String type) {
    super(name);
    this.type = type;
    this.id = id;
  }
  
  public FuncParamDescriptor(String id, String name, String type, String valueClassName) {
    this(id, name, type);
    this.valueClassName = valueClassName;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }
  
  public String getType(){
    return type;
  }
  
  public void setType(String type){
    this.type = type;
  }
  
  public String getValueClassName(){
    return valueClassName;
  }
  
  public void setValueClassName(String valueClassName){
    this.valueClassName = valueClassName;
  }
  
  @Override
  public int hashCode() {
    int hash = 0;
    hash += getName().hashCode() + getId().hashCode() + getType().hashCode();
    return hash;
  }
  
  @Override
  public boolean equals(Object obj) {
    if (obj.getClass() != this.getClass())
      return false;
    
    return this.hashCode() == obj.hashCode();
  }
  

}
